package me.zhengjie.modules.rest.enterprise;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.domain.enterprise.EnterpriseTax;
import me.zhengjie.modules.service.EnterpriseTaxService;
import me.zhengjie.modules.utils.Contents;
import me.zhengjie.modules.utils.JsonUtils;
import me.zhengjie.modules.utils.ReturnObject;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api("企业税务信息Api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/enterTax")
public class EnterpriseTaxController {

    private final EnterpriseTaxService enterpriseTaxService;

    @ApiOperation("根据企业名称查询税务信息")
    @AnonymousAccess
    @GetMapping("/queryEnterpriseTaxByName")
    public List<EnterpriseTax> queryEnterpriseTaxByName(String name){
        return enterpriseTaxService.queryEnterpriseTaxByName(name);
    }
}
